package com.ht.service.student.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.ht.dao.student.AtschoolMapper;
import com.ht.bean.student.Atschool;
import com.ht.service.student.AtschoolService;

import java.util.List;

/**
 * @author lrq
 * @date 2020/6/29 8:58
 * 
 */
@Service
public class AtschoolServiceImpl implements AtschoolService{

    @Resource
    private AtschoolMapper atschoolMapper;

    @Override
    public int getTotalRow(Integer studid) {
        return atschoolMapper.getTotalRow(studid);
    }

    @Override
    public List<Atschool> allAtschool(Integer studid) {
        return atschoolMapper.allAtschool(studid);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return atschoolMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Atschool record) {
        return atschoolMapper.insert(record);
    }

    @Override
    public int insertSelective(Atschool record) {
        return atschoolMapper.insertSelective(record);
    }

    @Override
    public Atschool selectByPrimaryKey(Integer id) {
        return atschoolMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Atschool record) {
        return atschoolMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Atschool record) {
        return atschoolMapper.updateByPrimaryKey(record);
    }

}
